module.exports = (app) => {
  const { config } = app
  const { dict, constant } = config
  const { ORDER_STATE_AWAIT_PAY } = constant
  const { Schema, model, getModelName, formatDate } = app.jax.mongoose
  const modelName = getModelName(__filename)

  const battleSchema = new Schema({
    adminId: Schema.Types.ObjectId, // 管理员ID
    cdk: String, // 序列号
  })

  const BattleModel = model(modelName, battleSchema)

  return BattleModel
}
